package cn.yzfy.common.model.dto;

import cn.yzfy.common.base.dto.BaseDTO;
import cn.yzfy.common.enums.GenderEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;

/**
 * @author 一朝风月
 * @date 2025/9/11 18:14
 * @Code 面向注解面向卿，终无解释再无你
 * @description 登出注销token
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginOutputDTO extends BaseDTO {

    @Serial
    private static final long serialVersionUID = -6407678092362889792L;

    @Schema(description = "用户id")
    private Long id;

    /**
     * 访问Token
     */
    @Schema(description = "访问Token令牌")
    private String accessToken;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;

    /**
     * 账号
     */
    @Schema(description = "账号")
    private String account;

    /**
     * 性别
     */
    @Schema(description = "性别")
    private GenderEnum gender;

    /**
     * 手机号
     */
    @Schema(description = "手机号")
    private String phone;

    /**
     * 头像url
     */
    @Schema(description = "头像url")
    private String avatarUrl;
}